Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development
Modifying the Object Generator defaults for a dynamic object
A slight digression is needed to get a reasonable looking dynamic viewer. If you run the dynamic window you just created, you might see that all the
Customerfields in the viewer are in a single column, making for a very tall and awkward-looking viewer. This is a result of the viewer settings you chose when you ran the Object Generator. You can edit the viewer in the AppBuilder to arrange the fields as you want them, but it is still helpful to improve the default layout so that there is less to change later on.
![]()
To reduce the number of fields in a column:
- Return to the Object Generator by choosing Build
Object Generator.
- Set the OE Product Module.
- Uncheck the Data objects toggle box. Existing SDOs in your selected module are displayed in the browse.
- Select just the Customer SDO in the browse, and activate the Viewers toggle box, as shown:
![]()
- Choose the Viewers folder tab. Choose the OE Product module and set the Max fields per column to a smaller number, perhaps 6 or 8, as shown:
![]()
- Press the Start button to re-create the dynamic viewer.
When the generation is complete, you have a new dynamic
Customerviewer with three columns, a better default appearance for most windows. Figure 1–3 shows how this viewer will look when you run the completed example later on.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |